package cn.tedu.tmall.front.mall.pojo.po;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@Document(indexName = "mall_goods_index")
public class GoodSearchPO implements Serializable {
    @Id
    Long id;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    String title;

    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    String brief;

    @Field(type = FieldType.Keyword)
    String keywords;
}
